/**
 * Created by rongyao on 2017/11/13.
 */
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var productSchema = new mongoose.Schema({
	name:String,
	describe:String,
	cateId:String,
	commentCount:String,
	address:String,
	price:"",
	pic:[],
	date:{type:Date,default:Date.now}
});
productSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Product',productSchema,'product'); // Model.paginate()